package com.leyuangame.dao.repository.jpa.user;

import com.leyuangame.core.enums.PlayUserLogType;
import com.leyuangame.utils.UKTools;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "bm_playuserlog")
@org.hibernate.annotations.Proxy(lazy = false)
public class PlayUserLog implements Serializable{
    public PlayUserLog(){
        super();
    }
    public PlayUserLog(String user_id, String PlayUserLog, String content){
        this.user_id=user_id;
        this.type = PlayUserLog;
        this.content = content;
    }
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Id
    private String id = UKTools.getUUID().toLowerCase();

    public String user_id;//用户id

    public String type; //日志类型

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String content;

    public Date add_time = new Date();

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getAdd_time() {
        return add_time;
    }

    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }

    /**
     * @return the id
     */
    @Id
    @Column(length = 32)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "assigned")
    public String getId() {
        return id;
    }

}
